package com.lq.mapper;

import com.lq.pojo.Document;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DocumentMapper {

    void saveFile(String fileName, String url, String extension, int userId);

    List<Document> getAllDocumentByUserId(int offset, int limit, int userId);

    boolean deleteDocumentById(int documentId);

    int getNumsOfDocumentByUserId(int userId);

    String getDocumentPathByDocId(int documentId);
}
